From edd7911723be7f3d41566639c543af4c9a8b3201 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 26 Jan 2008 15:26:41 +0000 Subject: [PATCH] Call makefile recursively for subdirs. This makes it possible to handle subdirs differently. Signed-off-by: Bastian Blank --- tools/Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index 1f883ef2fd..d5f49f4da5 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -37,14 +37,14 @@ endif .PHONY: all all: check @set -e; for subdir in $(SUBDIRS-y); do \ - $(MAKE) -C $$subdir $@; \ + $(MAKE) subdir-$@-$$subdir; \ done $(MAKE) ioemu .PHONY: install install: check @set -e; for subdir in $(SUBDIRS-y); do \ - $(MAKE) -C $$subdir $@; \ + $(MAKE) subdir-$@-$$subdir; \ done $(MAKE) ioemuinstall $(INSTALL_DIR) $(DESTDIR)/var/xen/dump @@ -54,13 +54,22 @@ install: check .PHONY: clean clean: check_clean @set -e; for subdir in $(SUBDIRS-y); do \ - $(MAKE) -C $$subdir $@; \ + $(MAKE) subdir-$@-$$subdir; \ done $(MAKE) ioemuclean .PHONY: distclean distclean: clean +subdir-all-%: + $(MAKE) -C $* all + +subdir-clean-%: + $(MAKE) -C $* clean + +subdir-install-%: + $(MAKE) -C $* install + .PHONY: check check: $(MAKE) -C check -- 2.30.2